@use "var.scss" as *;
@use "global.scss" as *;

.box {
    width: 100%;
    .profile {
        height: 500px;
    }
}

.avatar-box {
    .avatar {
        height: 10rem;
        width: 10rem;
        border: 0.0625rem solid #f7f7f7;
        display: block;
        margin: 0 auto;
        padding: 0.125rem;
        box-shadow: 0 0 1rem 0.625rem #f7f7f7;
        border-radius: 50%;
        transition: transform 0.3s ease-in-out;
    }
}

.avatar-box {
    .avatar:hover {
        animation: zoomRotate 0.5s forwards;
    }
}

@keyframes zoomRotate {
    0% {
        transform: scale(1) rotate(0deg);
    }
    10% {
        transform: scale(1.1) rotate(-3deg);
    }
    30% {
        transform: scale(1.1) rotate(3deg);
    }
    50% {
        transform: scale(1.1) rotate(-3deg);
    }
    70% {
        transform: scale(1.1) rotate(3deg);
    }
    90% {
        transform: scale(1.1) rotate(-3deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
    }
}

.nickname {
    color: $text-333;
    font-weight: 400;
    margin: 0.3125rem 0 0;
    text-align: center;
}

.bio {
    color: $text-999;
    font-size: 1em;
    margin-top: 0.3125rem;
    text-align: center;
}

.statistics-box {
    margin-top: 0.3125rem;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    color: $text-666;

    .article-item {
        border-right: 1px solid #817d7d;
    }

    .tag-item {
        border-left: 1px solid #817d7d;
    }

    .article-item,
    .classify-item,
    .tag-item {
        padding: 0 1rem;
        cursor: pointer;
    }

    .article-item:hover,
    .classify-item:hover,
    .tag-item:hover {
        color: #4ec3f1;
    }

    ::v-deep .number {
        display: block;
        font-size: 1.25em;
        font-weight: 600;
        text-align: center;
    }

    ::v-deep .title {
        color: inherit;
        font-size: 0.875em;
    }
}

.sidebar-menu {
    margin-top: 3rem;
    width: 100%;
    height: 100%;
    color: $color-grey;
}

.sidebar-menu-navbar {
    /* 设置为竖向排列 */
    display: flex;
    flex-direction: column;

    padding: 0 2rem;

    .align-center {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: nowrap;
        padding: 0.8rem 0;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .align-center:hover {
        background-color: skyblue;
        border-radius: 1rem;
        transform: scale(1.1);
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    }
}

.night-mode .controls-container {
    .tab {
        .tab-item {
            background-color: rgba(97, 128, 162, 0.69);
        }
    }
}

// 侧边栏控制按钮容器
.controls-container {
    width: 100%;
    height: 6vh;

    .tab {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: nowrap;
        padding: 0 1%;
        margin: 0;
        min-height: 1.875rem;

        list-style-type: disc;
        margin-block-start: 1em;
        margin-block-end: 1em;
        margin-inline-start: 0px;
        margin-inline-end: 0px;
        padding-inline-start: 40px;

        .tab-item {
            flex: 0 1 auto; /* 允许元素根据需要收缩或拉伸，但不会超出其初始尺寸 */
            margin-right: 1rem;
            cursor: pointer;
            color: #999;
            border-radius: 0.625rem;
            text-align: center;
            text-decoration: none;
            background-color: rgba(0, 0, 0, 0.08);
            transition: all 0.2s ease-out 0s;

            .controls-text-box {
                height: 3rem;
                display: flex;
                align-items: center;
                padding: 0 0.5rem;

                .controls-text {
                    color: #fff;
                    font-size: 1rem;
                    white-space: nowrap;
                    margin-left: 0.5rem;
                }

                .controls-text:hover {
                    color: #4ec3f1;
                }
            }
        }
    }
}

.night-mode .nickname {
    color: #fff;
}

.controls-active {
    color: #fff;
    background-image: linear-gradient(to right, #ed6ea0 0, #ec8c69 100%);
    box-shadow: 0 0 0.75rem var(--color-pink-a3);
}
